<?php

#doc
#	classname:	Booking
#	scope:		PUBLIC
#
#/doc

class Booking extends Model
{
	#	internal variables
	var $attributes = array(
	array('id','INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY'),
	array('name','VARCHAR(255)'),
	array('value','INTEGER'),
	array('job_id','INTEGER'),
	);

	var $belongsTo = 'Job';

	var $table = 'booking';

	#	Constructor
	function __construct (  )
	{
		# code...
	}

	function getJob(){
		Classloader::getInstance()->loadModel("Job");
		$job = new Job();
		return $job->find($this->job_id);
	}
	###

}
###

?>